import Vue from 'vue'
import * as echarts from 'echarts'
import 'echarts-wordcloud'
import '@/config'
import ElementUI from 'element-ui';
import Avue from '@smallwei/avue'
import Storage from 'vue-ls'
import store from './store/'
import VueCookies from 'vue-cookies'
import '@smallwei/avue/lib/index.css'
import axios from './axios'
import 'element-ui/lib/theme-chalk/index.css';
import dataV from '@jiaminghi/data-view'
import router from './router.js';
import App from './App.vue'
import './styles/chunk-vendors.css'
import './styles/page.css'
import './styles/app.css'
import './styles/style.scss'
import '@/utils/es6'
import '@/mock/'
//引入动画效果
import 'animate.css';
import html2canvas from 'html2canvas'

import '@/permission' // permission control


window.echarts = echarts
window.html2canvas = html2canvas
console.log('echarts就绪:',window.echarts)
//导入主题文件
import '@/theme/index'
Vue.config.productionTip = false
window.axios = axios;
Vue.use(Avue, {
  size: 'mini'
});
Vue.use(Storage, {
  namespace: 'pro__', // key prefix
  name: 'ls', // name variable Vue.[ls] or this.[$ls],
  storage: 'local', // storage name session, local, memory
})
Vue.use(VueCookies)
Vue.prototype.$website = window.$website;
Vue.use(ElementUI);
Vue.use(dataV)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
